
package com.diandian.pos.rabbitmq;


public final class MessageType {
    public final static short LOGIN_REQ = 0; // 登录请求
    public final static short LOGIN_RESP = 1; // 登录应答
    public final static short HEARTBEAT_REQ = 2; // 心跳请求
    public final static short HEARTBEAT_RESP = 3; // 心跳响应


    /**
     * ERASE_CONFIG_REQ = 30,//全局抹零配置开关，细节配置在json数据中定义，机器/服务启动时、配置更改时发送
     * ERASE_CONFIG_RESP,
     * ALL_PRODUCT_REFRESH_REQ=50,//商品全量同步请求
     * ALL_PRODUCT_REFRESH_RESP,//商品全量同步响应
     * ADD_CATEGORY_REQ=100, //增加商品类别请求 100
     * ADD_CATEGORY_RESP, //增加商品类别响应 101
     */

    public final static short ERASE_CONFIG_REQ = 30;
    public final static short ERASE_CONFIG_RESP = 31;

    public final static short ALL_PRODUCT_REFRESH_REQ = 50;
    public final static short ALL_PRODUCT_REFRESH_RESP = 51;

    public final static short ADD_CATEGORY_REQ = 100;
    public final static short ADD_CATEGORY_RESP = 101;


    /**
     * ADD_PRODUCT_REQ, //增加商品项请求 102
     * ADD_PRODUCT_RESP, //增加商品项响应 103
     * DEL_CATEGORY_REQ, //删除商品类别请求 104
     * DEL_CATEGORY_RESP, //删除商品类别响应 105
     * DEL_PRODUCT_REQ, //删除商品项请求 106
     * DEL_PRODUCT_RESP, //删除商品项响应 107
     * STOP_CATEGORY_REQ,//沽清商品类别请求 108
     * STOP_CATEGORY_RESP,//沽清商品类别响应 109
     * STOP_PRODUCT_REQ, //沽清商品项请求 110
     * STOP_PRODUCT_RESP, //沽清商品项响应 111
     */

    public final static short ADD_PRODUCT_REQ = 102;
    public final static short ADD_PRODUCT_RESP = 103;
    public final static short DEL_CATEGORY_REQ = 104;
    public final static short DEL_CATEGORY_RESP = 105;
    public final static short DEL_PRODUCT_REQ = 106;
    public final static short DEL_PRODUCT_RESP = 107;
    public final static short STOP_CATEGORY_REQ = 108;
    public final static short STOP_CATEGORY_RESP = 109;
    public final static short STOP_PRODUCT_REQ = 110;
    public final static short STOP_PRODUCT_RESP = 111;

    /**
     * ONLINE_CATEGORY_REQ,//上线商品类别请求 112
     * ONLINE_CATEGORY_RESP,// 上线商品类别响应 113
     * ONLINE_PRODUCT_REQ, //上线商品项请求 114
     * ONLINE_PRODUCT_RESP, //上线商品项响应 115
     * DOWN_CATEGORY_REQ,//下架商品类别请求 116
     * DOWN_CATEGORY_RESP,//下架商品类别响应 117
     * DOWN_PRODUCT_REQ, //下架商品项请求 118
     * DOWN_PRODUCT_RESP, //下架商品项响应 119
     * UP_CATEGORY_REQ,//上架商品类别请求 120
     * UP_CATEGORY_RESP,//上架商品类别响应 121
     * UP_PRODUCT_REQ, //上架商品项请求 122
     * UP_PRODUCT_RESP, //上架商品项响应 123
     * ADD_PROP_REQ=150,//增加商品属性请求 150
     * ADD_PROP_RESP,//增加商品属性响应 151
     * DEL_PROP_REQ,//删除商品属性请求 152
     * DEL_PROP_RESP,//删除商品属性响应 153
     */

    public final static short ONLINE_CATEGORY_REQ = 112;
    public final static short ONLINE_CATEGORY_RESP = 113;
    public final static short ONLINE_PRODUCT_REQ = 114;
    public final static short ONLINE_PRODUCT_RESP = 115;
    public final static short DOWN_CATEGORY_REQ = 116;
    public final static short DOWN_CATEGORY_RESP = 117;
    public final static short DOWN_PRODUCT_REQ = 118;
    public final static short DOWN_PRODUCT_RESP = 119;
    public final static short UP_CATEGORY_REQ = 120;
    public final static short UP_CATEGORY_RESP = 121;
    public final static short UP_PRODUCT_REQ = 122;
    public final static short UP_PRODUCT_RESP = 123;

    public final static short ADD_PROP_REQ = 150;
    public final static short ADD_PROP_RESP = 151;
    public final static short DEL_PROP_REQ = 152;
    public final static short DEL_PROP_RESP = 153;

    //

    public final static short ORDER_UPLOAD_REQ = 300; // 收银端订单上传 客户端-->服务端
    public final static short ORDER_UPLOAD_RESP = 301; // 收银端订单上传成功 服务端-->客户端
    public final static short TABLE_INFO_REQ = 400; // 收银端桌台全部信息上传
    public final static short TABLE_INFO_RESP = 401; // 收银端桌台全部信息上传ok 服务端响应
    public final static short TABLE_OPEN_REQ = 402; // 开台信息上传
    public final static short TABLE_OPEN_RESP = 403; // 开台信息上传ok 服务端响应
    public final static short TABLE_BOOKING_REQ = 404; // 预订桌位请求
    public final static short TABLE_BOOKING_RESP = 405;// 预订桌位响应
    public final static short TABLE_CLEAN_REQ = 406; // 清台信息上传
    public final static short TABLE_CLEAN_RESP = 407; //清台信息上传OK

    public final static short TABLE_ADD_REQ = 408;  //添加新桌台请求
    public final static short TABLE_ADD_RESP = 409;  //添加新桌台响应
    public final static short TABLE_DEL_REQ = 410;  //删除桌台请求
    public final static short TABLE_DEL_RESP = 411;  //删除桌台响应
    public final static short TABLE_MODIFY_REQ = 412;  //修改桌台请求
    public final static short TABLE_MODIFY_RESP = 413;  //修改桌台响应

    public final static short AREA_ADD_REQ = 450;//添加区域请求
    public final static short AREA_ADD_RESP = 451;  //添加区域响应
    public final static short AREA_DEL_REQ = 452; //删除区域请求
    public final static short AREA_DEL_RESP = 453;  //删除区域响应
    public final static short AREA_MODIFY_REQ = 454; //修改区域请求
    public final static short AREA_MODIFY_RESP = 455;  //修改区域响应


    public final static short ONLINE_ORDER_DOWN = 500;//新订单下发 云-->pos收银
    public final static short ONLINE_ORDER_DOWN_RESP = 501;//pos相应新订单下发

    public final static short ONLINE_ORDER_APPENDED_DOWN = 502;//订单加菜下发 云-->pos收银
    public final static short ONLINE_ORDER_APPENDED_DOWN_RESP = 503;//pos相应订单加菜下发

    public final static short ONLINE_ORDER_PAYED_DOWN = 504;//后支付订单状态下发 云-->pos收银
    public final static short ONLINE_ORDER_PAYED_DOWN_RESP = 505;//pos相应后支付订单状态下发


    
    public final static short POS_USER_INIT_UPLOAD=600;
    public final static short POS_USER_INIT_UPLAOD_RESP=601;

    public final static short POS_USER_UPDATE_UPLOAD=602;
    public final static short POS_USER_UPDATE_UPLOAD_RESP=603;


    public final static short POS_MICRO_ORDER_PAY=620;
    public final static short POS_MICRO_ORDER_PAY_RESP=621;


    public final static short POS_MICRO_ORDER_PAY_QUERY=622;
    public final static short POS_MICRO_ORDER_PAY_QUERY_RESP=623;


    public final static short ONLINE_ORDER_DOWN_TO_AGENT = 650;//新订单下发 云-->agent
    public final static short ONLINE_ORDER_DOWN_TO_AGENT_RESP = 651;//agent 订单回传 agent-->云


    public final static short AGENT_PRINTER_UPLOAD= 670;//agent打印机数据上传 agent-->云
    public final static short AGENT_PRINTER_UPLOAD_RESP = 671;//云相应agent打印机数据上传 云-->agent


    public final static short AGENT_GET_PRINTER_CFG= 672;//agent请求下发打印机信息 agent-->云
    public final static short AGENT_GET_PRINTER_CFG_RESP = 673;//云相应agent请求打印机数据 云-->agent


    public final static short POS_ORDER_MERGE_UPLOAD = 681;//pos 订单合单结果上传 pso-->云
    
    /** 收银日报表上传： 800*/
    public static final int POS_DAY_REPORT = 800;


    public final static short CLOUD_CMD_KICK_SHOP =720;
    public final static short CLOUD_CMD_POS_RESTART=722;
    public final static short CLOUD_CMD_POS_PC_RESTART=724;
    public final static short CLOUD_CMD_POS_LOG_UPLOAD=708;
    public final static short CLOUD_CMD_REPRINT_ORDER=730;
    public final static short CLOUD_CMD_REPRINT_ORDER_RESP=731;
    public final static short CLOUD_CMD_TICKET_REPRINT_ORDER=732;
    public final static short CLOUD_CMD_TICKET_REPRINT_ORDER_RESP=734;
    public final static short CLOUD_CMD_KITCHEN_REPRINT_ORDER=735;
    public final static short CLOUD_CMD_KITCHEN_REPRINT_ORDER_RESP=736;
	public static final short ERROR_MSG_REQ = 10000;//pos端异常消息，pos--->云
	
	
	public static final short UNIT_DICT_DOWN = 750;//单位字典数据下发 云--->收银
	public static final short UNIT_DICT_DOWN_RESP = 751;//单位字典数据下发（响应） 云--->收银
	
	public static final short UNIT_DICT_UPLOAD = 752;//单位字典数据上传   收银--->云
	public static final short UNIT_DICT_UPLOAD_RESP = 753;//单位字典数据上传（响应）   收银--->云
	
	//二维码响应
	public static final short POS_WECHAT_BARCODE_RESP = 605;
	//二维码扫码支付信息下发
	public static final short POS_WECHAT_PAYINFO_RESP = 607;

	public static final short PROXY_PRINTER_INFO_UPLOAD_REQ=11004;//C++代理打印机信息上传
	
	public static final short PROXY_CONFIG_INFO_UPLOAD_REQ=11004;// 配置信息上传请求
	public static final short PROXY_CONFIG_INFO_UPLOAD_RESP=11005;// 配置信息上传回应
	public static final short PROXY_CONFIG_INFO_DOWNLOAD_REQ=11006;// 配置信息下载请求
	public static final short PROXY_CONFIG_INFO_DOWNLOAD_RESP=11007;// 配置信息下载回应
	
}
